package com.yunsc.media.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import com.yunsc.media.entity.YunscUploadFileEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 文件DTO
 * @date: 2024-04-21 0:44
 */
@ApiModel(value = "文件DTO")
@Data
public class FileDTO {
    @ApiModelProperty(value = "文件id")
    @NotNull(message = "文件id不能为空", groups = {ValidationGroups.Update.class})
    @JsonProperty("fileId")
    private Integer fileId;
    @ApiModelProperty(value = "文件信息")
    private YunscUploadFileEntity form;

    @ApiModelProperty(value = "文件ids")
    @NotNull(message = "文件ids不能为空", groups = {ValidationGroups.Delete.class})
    @JsonProperty("fileIds")
    private List<Integer> fileIds;
}
